home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
etc
/
zsh_command_not_found
< prev
Wrap
Text File
|
2008-04-03
|
461b
|
19 lines
# (c) Zygmunt Krynicki 2007,
# Licensed under GPL, see COPYING for the whole text
#
# This script will look-up command in the database and suggest
# installation of packages available from the repository
function preexec() {
command="${1%% *}"
}
function precmd() {
(($?)) && [ -n "$command" ] && [ -x /usr/lib/command-not-found ] && {
whence -- "$command" >& /dev/null ||
/usr/bin/python /usr/lib/command-not-found -- "$command"
unset command
}
}